<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.grep.extra.dao.impl.TaskDAOSQL,com.grep.web.dto.SiteTaskDto" %>
<%
	request.setCharacterEncoding("UTF-8");
	String taskid = request.getParameter("taskid");
	TaskDAOSQL taskdao = new TaskDAOSQL();
	
	SiteTaskDto siteTaskDto = new SiteTaskDto();
	
	siteTaskDto = taskdao.getTaskByTaskID(taskid);
	
	String responseText ="{\"taskid\": \""+taskid+"\",\"taskname\": \""+siteTaskDto.getTaskName()+"\",\"Taskanalyse\": \""+siteTaskDto.getTaskAnalyse()+"\",\"Taskpolicy\": \""+siteTaskDto.getTaskPolicy()+"\",\"taskdesc\": \""+siteTaskDto.getTaskDesc()+"\"}";
	
	response.getWriter().println(responseText);
	
%>